package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.KkDeliveryMapper;
import com.ruoyi.system.domain.KkDelivery;
import com.ruoyi.system.service.IKkDeliveryService;

/**
 * 快递公司Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-24
 */
@Service
public class KkDeliveryServiceImpl implements IKkDeliveryService 
{
    @Autowired
    private KkDeliveryMapper kkDeliveryMapper;

    /**
     * 查询快递公司
     * 
     * @param id 快递公司主键
     * @return 快递公司
     */
    @Override
    public KkDelivery selectKkDeliveryById(Integer id)
    {
        return kkDeliveryMapper.selectKkDeliveryById(id);
    }

    /**
     * 查询快递公司列表
     * 
     * @param kkDelivery 快递公司
     * @return 快递公司
     */
    @Override
    public List<KkDelivery> selectKkDeliveryList(KkDelivery kkDelivery)
    {
        return kkDeliveryMapper.selectKkDeliveryList(kkDelivery);
    }

    /**
     * 新增快递公司
     * 
     * @param kkDelivery 快递公司
     * @return 结果
     */
    @Override
    public int insertKkDelivery(KkDelivery kkDelivery)
    {
        return kkDeliveryMapper.insertKkDelivery(kkDelivery);
    }

    /**
     * 修改快递公司
     * 
     * @param kkDelivery 快递公司
     * @return 结果
     */
    @Override
    public int updateKkDelivery(KkDelivery kkDelivery)
    {
        return kkDeliveryMapper.updateKkDelivery(kkDelivery);
    }

    /**
     * 批量删除快递公司
     * 
     * @param ids 需要删除的快递公司主键
     * @return 结果
     */
    @Override
    public int deleteKkDeliveryByIds(Integer[] ids)
    {
        return kkDeliveryMapper.deleteKkDeliveryByIds(ids);
    }

    /**
     * 删除快递公司信息
     * 
     * @param id 快递公司主键
     * @return 结果
     */
    @Override
    public int deleteKkDeliveryById(Integer id)
    {
        return kkDeliveryMapper.deleteKkDeliveryById(id);
    }
}
